home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / include / getpages.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  620 b   |  28 lines

  1. /* This is file getpages.h */
  2. /* This file may have been modified by DJ Delorie (Jan 1991).  If so,
  3. ** these modifications are Coyright (C) 1991 DJ Delorie, 24 Kirsten Ave,
  4. ** Rochester NH, 03867-2954, USA.
  5. */
  6.  
  7. #ifndef HAVE_GETPAGESIZE
  8.  
  9. #include <sys/param.h>
  10.  
  11. #ifdef EXEC_PAGESIZE
  12. #define getpagesize() EXEC_PAGESIZE
  13. #else
  14. #ifdef NBPG
  15. #define getpagesize() NBPG * CLSIZE
  16. #ifndef CLSIZE
  17. #define CLSIZE 1
  18. #endif /* no CLSIZE */
  19. #else /* no NBPG */
  20. #ifdef NBPC
  21. #define getpagesize() NBPC
  22. #endif /* NBPC */
  23. #endif /* no NBPG */
  24. #endif /* no EXEC_PAGESIZE */
  25.  
  26. #endif /* not HAVE_GETPAGESIZE */
  27.  
  28.